irasterbandcollection
Dim prasterprops as irasterprops
Dim pcache
'Qi for irawpixels and irasterprops
Set pbands = PDS
Set prawpixel = pbands. Item (0)
Set prasterprops = prawpixel
'Create pixelblock
Set PPNT = new dblpnt
PPNT. setcoords 0, 0
Set psize = new dblpnt
Psize. setcoords prasterprops. Width, prasterprops. Height
Set ppixelblock = prawpixel. createpixelblock (psize)
'Read
;
Int dheight = rasterprops. height; // number of rows in the current grid Dataset
Int dwidth = rasterprops. width; // Number of columns in the current raster Dataset
Double dx = rasterprops. meancellsize (). X; // The width of the grid.
Double DY = rasterprops. meancellsize (). Y; // The height of the grid.
Ienvelope extent = rasterprops. extent; // the range of the current raster Dataset
Rstpixeltype pixeltype = rasterprops. pixeltype; // The current grid pixel type.
Ipnt pntsize = new pntclas
This paper mainly introduces the use of Irawpixels interface to traverse raster data. Have a good reference value, follow the small series together to see it
The version of AO is 10.2, and the language developed is C #. Raster data source Irasterdataset interface.
Irasterbandcollection prasterbandcollection = Prasterdataset as Irasterbandcollection;irasterband PRasterBand = Prasterbandcollection.item (0); Iraster Praster = (prasterdataset as IRasterDataset2). Createfullraster (); Irawpixels pra
Use the IRawPixels interface to traverse raster data, irawpixels raster
The AO version is 10.2 and the developed language is C #. Raster Data Source IRasterDataset interface.
1 IRasterBandCollection pRasterBandCollection = pRasterDataset as IRasterBandCollection; 2 IRasterBand pRasterBand = pRasterBandCollection.Item(0); 3 IRaster pRaster = (pRasterDataset as IRasterDataset2).CreateFullRaster(); 4 IRawPixels pRawPixels = pRasterBand as IRawPixels; 5 IRasterProps pRasterProps = pRasterBand as
ycrcb video. Macro Block layer ml contains the movement of P frames and B framesVector (MV-MotionVectors ). Additional data includes the following information: describes the macro block address of the macro block in the Macro Block Bar layer, the macro block type of the macro block encoding method and content, the macro block quantization parameters, the differences between the motion vector type and the largeSmall, indicating that the field discrete cosine transform (DCT-discrete cosine transf
special projection and amplitude. This makes Raster more conducive to display and analysis.Because Raster's Transient nature,IRasterProps is an important interface used to control Raster attributes, such as amplitude, width, height, spatial reference, pixel type, and Nodata value.Dim pRasterProps as IRasterPropsSet pRasterProps = pRasterPRaster. ResampleMethod = RSP_BilinearInterpolationPRasterProps. SpatialReference = pNewSpatialReferenceDim pSaveAs as ISaveAsSet pSaveAs = pRasterPSaveAs. Save
", origin, width, height, xCell, yCell, NumBand, rstPixelType.PT_UCHAR, sr, true); //If you need to set NoData for some of the pixels, you need to set it on band //to get the raster band. IRasterBandCollection rasterBands = (IRasterBandCollection)rasterDataset; IRasterBand rasterBand; IRasterProps rasterProps; rasterBand = rasterBands.Item(0); rasterProps = (IRasterProps)rasterBand; //Set NoData if necessary. For a mu
; //This is the cell size in x direction. double yCell = 30; //This is the cell size in y direction. int NumBand = 1; // This is the number of bands the raster dataset contains. //Create a raster dataset in grid format. IRasterDataset rasterDataset = rasterWs.CreateRasterDataset(FileName, "GRID", origin, width, height, xCell, yCell, NumBand, rstPixelType.PT_UCHAR, sr, true); //Get the raster band. IRasterBandCollection rasterBands =
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.